<?php

// $Id$


class TCMS_CI_Attr_Type extends Tangra_Class {
	private $id;
	private $hid;
	private $name;
	private $class_name;
	private $class_path;


	public function set_id($id) {
		tangra_if_not_int_throw_e($id);

		$this->id = $id;
	}


	public function get_id() {
		return $this->id;
	}


	public function set_hid($hid) {
		if (ereg("[a-z0-9_]{1,100}", $hid)) {
			$this->hid = $hid;
		} else {
			throw TE_TCMS_Exception('Invalid hid: '.$hid.'. Must conform ereg("[a-z0-9_]{1,100}").');
		}
	}


	public function get_hid() {
		return $this->hid;
	}


	public function set_name($name) {
		$this->name = $name;
	}


	public function get_name() {
		return $this->name;
	}


	public function set_class_name($class_name) {
		$this->class_name = $class_name;
	}


	public function get_class_name() {
		return $this->class_name;
	}


	public function set_class_path($class_path) {
		$this->class_path = $class_path;
	}


	public function get_class_path() {
		return $this->class_path;
	}
}